When converting HTML to text, convert newline to space.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 19 Jun 2006 20:33:10 +0000 (20:33 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 19 Jun 2006 20:33:10 +0000 (20:33 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2166 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/util.c

index f0974d4234a443b985c2cf7708f252641b2907f4..cb115058aebef20325e79ee912dedb0918de3ff4 100644 (file)
@@ -1194,7 +1194,9 @@ strip_html(const utf_string *in)
                }
                
                if (! tag[0]) {
-                       if (*instr != '\n')
+                       if (*instr == '\n')
+                               *out++ = ' ';
+                       else
                                *out++ = *instr;
                }
                else {